using UnityEngine;

public class Attacked : MonoBehaviour
{
    [SerializeField] private AttackProperties _attackPropreties;

    private void Start()
    {
        _attackPropreties = GetComponent<AttackProperties>();
    }

    public void TakeDamage(int damage)
    {
        _attackPropreties.DamageIn(damage);
    }
}